<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="StatisticsDataSet" targetNamespace="http://tempuri.org/StatisticsDataSet.xsd" xmlns:mstns="http://tempuri.org/StatisticsDataSet.xsd" xmlns="http://tempuri.org/StatisticsDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="NotPublic" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="FxCopStatisticsConnectionString" IsAppSettingsProperty="True" Modifier="Assembly" Name="FxCopStatisticsConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.FinRad.FxCop.Statistics.Windows.Properties.Settings.GlobalReference.Default.FxCopStatisticsConnectionString" Provider="System.Data.SqlClient">
          </Connection>
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="NotPublic" DataAccessorName="ViolationSummaryTableAdapter" GeneratorDataComponentClassName="ViolationSummaryTableAdapter" Name="ViolationSummary" UserDataComponentName="ViolationSummaryTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FxCopStatisticsConnectionString (Settings)" DbObjectName="FxCopStatistics.dbo.spViolationSummary" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Fill" GenerateShortCommands="False" GeneratorSourceName="Fill" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="False" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="False">
                    <CommandText>dbo.spViolationSummary</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ProjectID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@AnalysisTimestamp" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@StatisticTypeID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Category" DataSetColumn="RuleCategory" />
              <Mapping SourceColumn="ViolationCount" DataSetColumn="ViolationCount" />
            </Mappings>
            <Sources>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="NotPublic" DataAccessorName="ViolationDetailsTableAdapter" GeneratorDataComponentClassName="ViolationDetailsTableAdapter" Name="ViolationDetails" UserDataComponentName="ViolationDetailsTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FxCopStatisticsConnectionString (Settings)" DbObjectName="FxCopStatistics.dbo.spViolationDetails" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Fill" GenerateShortCommands="False" GeneratorSourceName="Fill" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="False" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="False">
                    <CommandText>dbo.spViolationDetails</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ProjectID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@AnalysisTimestamp" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@StatisticTypeID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="RuleCategory" DataSetColumn="RuleCategory" />
              <Mapping SourceColumn="RuleName" DataSetColumn="RuleName" />
              <Mapping SourceColumn="ViolationCount" DataSetColumn="ViolationCount" />
            </Mappings>
            <Sources>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources>
        </Sources>
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="StatisticsDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="StatisticsDataSet" msprop:Generator_DataSetName="StatisticsDataSet">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="ViolationSummary" msprop:Generator_UserTableName="ViolationSummary" msprop:Generator_RowDeletedName="ViolationSummaryRowDeleted" msprop:Generator_RowChangedName="ViolationSummaryRowChanged" msprop:Generator_RowClassName="ViolationSummaryRow" msprop:Generator_RowChangingName="ViolationSummaryRowChanging" msprop:Generator_RowEvArgName="ViolationSummaryRowChangeEvent" msprop:Generator_RowEvHandlerName="ViolationSummaryRowChangeEventHandler" msprop:Generator_TableClassName="ViolationSummaryDataTable" msprop:Generator_TableVarName="tableViolationSummary" msprop:Generator_RowDeletingName="ViolationSummaryRowDeleting" msprop:Generator_TablePropName="ViolationSummary">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="RuleCategory" msprop:Generator_UserColumnName="RuleCategory" msprop:Generator_ColumnPropNameInRow="RuleCategory" msprop:Generator_ColumnVarNameInTable="columnRuleCategory" msprop:Generator_ColumnPropNameInTable="RuleCategoryColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ViolationCount" msdata:ReadOnly="true" msprop:Generator_UserColumnName="ViolationCount" msprop:Generator_ColumnPropNameInRow="ViolationCount" msprop:Generator_ColumnVarNameInTable="columnViolationCount" msprop:Generator_ColumnPropNameInTable="ViolationCountColumn" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="ViolationDetails" msprop:Generator_UserTableName="ViolationDetails" msprop:Generator_RowDeletedName="ViolationDetailsRowDeleted" msprop:Generator_RowChangedName="ViolationDetailsRowChanged" msprop:Generator_RowClassName="ViolationDetailsRow" msprop:Generator_RowChangingName="ViolationDetailsRowChanging" msprop:Generator_RowEvArgName="ViolationDetailsRowChangeEvent" msprop:Generator_RowEvHandlerName="ViolationDetailsRowChangeEventHandler" msprop:Generator_TableClassName="ViolationDetailsDataTable" msprop:Generator_TableVarName="tableViolationDetails" msprop:Generator_RowDeletingName="ViolationDetailsRowDeleting" msprop:Generator_TablePropName="ViolationDetails">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="RuleCategory" msprop:Generator_UserColumnName="RuleCategory" msprop:Generator_ColumnPropNameInRow="RuleCategory" msprop:Generator_ColumnVarNameInTable="columnRuleCategory" msprop:Generator_ColumnPropNameInTable="RuleCategoryColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="RuleName" msprop:Generator_UserColumnName="RuleName" msprop:Generator_ColumnPropNameInRow="RuleName" msprop:Generator_ColumnVarNameInTable="columnRuleName" msprop:Generator_ColumnPropNameInTable="RuleNameColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ViolationCount" msprop:Generator_UserColumnName="ViolationCount" msprop:Generator_ColumnPropNameInRow="ViolationCount" msprop:Generator_ColumnVarNameInTable="columnViolationCount" msprop:Generator_ColumnPropNameInTable="ViolationCountColumn" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:ViolationSummary" />
      <xs:field xpath="mstns:RuleCategory" />
    </xs:unique>
    <xs:unique name="ViolationDetails_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:ViolationDetails" />
      <xs:field xpath="mstns:RuleCategory" />
      <xs:field xpath="mstns:RuleName" />
    </xs:unique>
  </xs:element>
</xs:schema>